/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package rdr.geo.map2d.tiles;

import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import javax.imageio.ImageIO;
import rdr.geo.entities.Coordinate;

/**
 *
 * @author Rubén Ruano
 */
public class Tile {

    private BufferedImage image;

    private Coordinate coordinate;

    public Tile(String imageName, double lat, double lon) {
        try {
            File file = new File(imageName);
            this.image = ImageIO.read(file);
            coordinate = new Coordinate(lat, lon);
        } catch (IOException ex) {
        }
    }

    /**
     * @return the image
     */
    public BufferedImage getImage() {
        return image;
    }

    public Coordinate getCoordinate()
    {
        return coordinate;
    }
}
